PShowPages();
Last command in script. Always place this command as the last command in the script; otherwise the results are unpredictable. Although other commands don't stop PShowPages, PageMaker can still receive and perform the commands while cycling through the pages. Therefore, you cannot control where in the publication a particular command is executed once PShowPages has begun.
Menu equivalent. The PShowPages command is equivalent to holding down the Shift key while selecting Go to Page from the Layout menu.
Layout view only. The PShowPages command works only in layout view.
Example. The following example allows you to preview each whole page in the entire publication by turning off the palettes and showing the pages of the publication (until you click to stop).
PToolbox(false);
PColorPalette(false);
PStylePalette(false);
PControlPalette(false);
PShowPage(); // Click to stop
Comments or suggestions? Contact Adobe Developer Support